#ifndef ARRAY_SYZE_HELPER_H
#define ARRAY_SYZE_HELPER_H
#pragma once

template <typename T, size_t N>
char (&ArraySizeHelper(T (&array)[N]))[N];

#define arraysize(array) (sizeof(ArraySizeHelper(array)))

#endif //ARRAY_SYZE_HELPER_H

